/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.video;

import org.hibernate.validator.constraints.Length;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 视频资源管理Entity
 * @author ZC
 * @version 2017-06-16
 */
@XmlType(name="videocfg")
public class EleSourceVideoGroup extends DataEntity<EleSourceVideoGroup> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String autoPlay;		// auto_play
	private List<EleSourceVideo> eleSourceVideoList = Lists.newArrayList();		// 子表列表
	
	public EleSourceVideoGroup() {
		super();
	}

	public EleSourceVideoGroup(String id){
		super(id);
	}
	@XmlTransient
	@Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@XmlTransient
	public String getAutoPlay() {
		return autoPlay;
	}

	public void setAutoPlay(String autoPlay) {
		this.autoPlay = autoPlay;
	}
	
	@XmlElement(name = "video")
	public List<EleSourceVideo> getEleSourceVideoList() {
		return eleSourceVideoList;
	}

	public void setEleSourceVideoList(List<EleSourceVideo> eleSourceVideoList) {
		this.eleSourceVideoList = eleSourceVideoList;
	}
}